package com.zoweunion.mechanic.dao.app;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 大屏数据Dao
 * @author rentianfeng
 */
@Component
public interface ScreenDataMapper {
    /**
     * 获取全部的车辆信息
     * @param reqMap
     * @return
     */
    List<Map<String, Object>> getAllCar(@Param("reqMap") Map<String, Object> reqMap);

    List<Map<String, Object>>selectDataReal();

    /**
     * 获取全部的车辆信息
     * @return
     */
    List<Map<String, Object>> getRealTimeLocationAllCar(Map<String, Object> reqMap);

    /**
     * 获取车辆最新位置信息
     * @return
     */
    Map<String, Object> getLastCarData(@Param("tableName") String tableName, @Param("thingsId") String thingsId);


    List<Map<String, Object>> getLastCarDataStatistics();

    // 获取服务商的个数
    int getServerCount();

    // 获取总用户数
    int getUserCount(Map<String, Object> reqMap);


    // 获取车辆的经纬度
    List<Map<String, Object>> carLocation();

    int selectPointConfiguration();

}
